function selectAll()
{
if(this.checked==true) {
checkAll('test');
}
else {
clearAll('test');
}
}
function checkAll(name)
{
var el = document.getElementsByTagName('input');
var len = el.length;
for(var i=0; i<len; i++)
{
if((el[i].type=="checkbox") && (el[i].name==name))
{
el[i].checked = true;
}
}
}
function clearAll(name)
{
var el = document.getElementsByTagName('input');
var len = el.length;
for(var i=0; i<len; i++)
{
if((el[i].type=="checkbox") && (el[i].name==name))
{
el[i].checked = false;
}
}
}
var Ptr=document.getElementById("tab").getElementsByTagName("tr");
function $() {
    for (i=1;i<Ptr.length+1;i++) {
    Ptr[i-1].className = (i%2>0)?"t1":"t2";
    }
}
window.οnlοad=$;
for(var i=0;i<Ptr.length;i++) {
    Ptr[i].οnmοuseοver=function(){
    this.tmpClass=this.className;
    this.className = "t3";

    };
    Ptr[i].οnmοuseοut=function(){
    this.className=this.tmpClass;
    };
}
